package cn.stack.springframework.test;

import cn.bugstack.springframework.context.support.ClassPathXmlApplicationContext;
import cn.stack.springframework.test.bean.IUserService14;
import org.junit.Test;

/**
 * 作者：DerekYRC https://github.com/DerekYRC/mini-spring
 */
public class ApiTest14 {

    @Test
    public void test_scan() {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring14.xml");
        IUserService14 userService14 = applicationContext.getBean("userService14", IUserService14.class);
        System.out.println("测试结果：" + userService14.toString());
    }


}
